package 反射机制详解.jvm类加载机制;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-12-26 23:25
 **/
public class TestClassLoader {
    public static void main(String[] args) {
        String s = new String("aaa");
        System.out.println(s.getClass().getClassLoader()); //启动类加载器
        System.out.println(A.class.getClassLoader()); //应用程序类加载器
    }
}

class A{

}
